<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script>
        $(function() {
            // var $p = $(".p01").next();
            // alert($p.html());

            // var $p = $(".p01").prev();
            // alert($p.html());

            var $ps = $(".p01").siblings();
            $ps.each(function(index, el) {
                alert($(el).html());
            })
        });
    </script>
    <style>

    </style>
</head>

<body>
    <p>阿斯顿发送到123</p>
    <p class="p01">阿斯顿发送到11</p>
    <p>阿斯顿发送到222</p>
    <p>阿斯顿发送到333</p>
</body>

</html>